<template>
	<view>
		<span>登录/注册</span>
		<label for="">
			<input type="text" v-model="phone" placeholder="请输入手机号">
		</label>
		<button @click="Login">登录</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				phone: ''
			}
		},
		methods: {
			Login() {
				uni.setStorageSync('token', this.phone)
				uni.navigateTo({
					url:'/pages/index/index'
				})
			}
		}
	}
</script>

<style>
	input {
		border: 1px solid black;
	}
</style>
